package com.example.ragproject.assistant;

import com.example.ragproject.tools.CalculatorTools;
import dev.langchain4j.service.MemoryId;
import dev.langchain4j.service.SystemMessage;
import dev.langchain4j.service.UserMessage;
import dev.langchain4j.service.V;
import dev.langchain4j.service.spring.AiService;
import dev.langchain4j.service.spring.AiServiceWiringMode;

/***
 * chatMemory 实现记忆
 * chatMemoryProvider 实现隔离化  实现在SeparateChatAssistantConfig
 */
@AiService(chatMemory = "chatMemory",chatMemoryProvider = "chatMemoryProvider") //配置工具
public interface SeparateChatAssistant {

    @SystemMessage(fromResource = "my-prompt-template.txt")
//    @SystemMessage("你是我的好朋友，请用东北话回答问题")
    String chat(@MemoryId int memoryId,@UserMessage String userMessage);




    @SystemMessage(fromResource = "my-prompt-template3.txt")
    String chat3(@MemoryId int memoryId, @UserMessage String userMessage, @V("username")String username,@V("age") int age);

}
